<!--
 * @FilePath     : /study_code/layui/13-2-7.html
 * @Description  : table options event
 * @Date         : 2025-04-07 17:15:21
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-07 17:58:24
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
  </head>
  <body>
    <table id="demo" lay-filter="test"></table>

    <script src="/layui/dist/layui.js"></script>
    <script src="/layui/table/common.js"></script>
    <script>
      var table = layui.table

      table.render({
        elem: '#demo',
        cols: cols,
        data: tableData,

        /**
         * @key size
         * @brief: 设定表格尺寸
         * @value {string}
         * ''   （默认）单元格高 40
         * 'sm'  小尺寸的表格，单元格高 30
         * 'lg'  大尺寸的表格，单元格高 50
         */
        // size: '',
        // size: 'sm',
        size: 'lg',
      })
    </script>
  </body>
</html>